package com.hfb.mashibing.alip8.jvm.c2_classloader;

/**
 * 每个 Class Loader 的查找范围
 */
public class T003_ClassLoaderScope {

    public static void main(String[] args) {
        String key = "sun.boot.class.path";
        final String bootPath = System.getProperty(key);
        System.out.println(key);
        System.out.println("--------------------------------->");
        System.out.println(bootPath.replaceAll(";", System.lineSeparator()));

        key = "java.ext.dirs";
        final String extDirs = System.getProperty(key);
        System.out.println(key);
        System.out.println("--------------------------------->");
        System.out.println(extDirs.replaceAll(";", System.lineSeparator()));

        key = "java.class.path";
        final String classPath = System.getProperty(key);
        System.out.println(key);
        System.out.println("--------------------------------->");
        System.out.println(classPath.replaceAll(";", System.lineSeparator()));
    }
}
